package com.sproutcat.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author tzg
 * @createdAt 2022/11/2 14:54
 */
@RestController
@RequestMapping("api")
public class HelloController {

    @GetMapping("hello")
    public String sayHello(@RequestParam(defaultValue = "sproutcat", required = false) String name) {
        return "Hello " + name;
    }

}
